import React, {useEffect, useState} from 'react';
import {View,} from '@tarojs/components';

import styles from './index.module.scss';
import OrderDetail from "@/mall/pages/order/OrderDetail";
import GoodDetail from "@/mall/pages/order/GoodDetail";

const Index: React.FC = () => {

    const [orderList, setOrderList] = useState<any>([])
    useEffect(() => {
        load();
    }, []);

    const load = async () => {


    };


    return (
        <View className={styles.page}>
            <View className={styles.page_head}>
                <View className={styles.page_head}>
                    +
                </View>
                <View className={styles.page_head}>
                    添加收货地址
                </View>
            </View>
            <View className={styles.page_body}>
                <View className={styles.page_body_top}>
                    云 Mall 深圳旗舰店
                </View>
                <View className={styles.page_body_center}>
                </View>

            </View>
            <View className={styles.page_foot}>{
                orderList.map((item, index) => <OrderDetail></OrderDetail>)
            }
            </View>
            <GoodDetail></GoodDetail>
            <View></View>
        </View>
    );
};

export default Index;
